bellmanFord_search

Performs a Bellman-Ford search on a graph

deprecated("Killing")
void
bellmanFord_search
(
T
U
)

Parameters

graph

The graph

source
Type: T

The starting position

distance
Type: U[T]

Output: Distance between node and starting position

predecessor
Type: T[T]

Output: A node's previous node

Meta